package com.ikun.admin.modules.sys.vo;

import com.ikun.admin.modules.sys.service.UserService;
import com.ikun.common.search.annotation.ResultUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @ClassName NoticeVo
 * @Description:
 * @CreateDate: 2024/7/17 9:30
 */
@Data
@ApiModel("通知列表返回结果")
public class NoticeListResultVo {
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("类型")
    private Integer type;

    @ApiModelProperty("发布人")
    @ResultUtil( listEntityPropName = "senderId",resultListEntityPropName = "realName", resultListUsedService = UserService.class)
    private String sender;

    @ApiModelProperty("接收人")
    private List<String> receiverList;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("发布时间")
    private LocalDateTime createDate;
}
